package delegate;

import java.util.HashMap;
import java.util.Map;

public class Leader implements IEmployee {
    private HashMap<String,IEmployee> map=new HashMap<>();

    public Leader(){
        map.put("设计",new EmployeeA());
        map.put("开发",new EmployeeB());
    }


    @Override
    public void doing(String command) {
        map.get(command).doing(command);
    }
}
